

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <img src="demo.php" alt="" id="img"/>
        <script type="text/javascript">
            setInterval(function () {
                document.querySelector("#img").src = "timer.php?" + Math.random();
            }, 1000);
        </script>
    </body>
</html>
